package com.gitee.mazhenggg.demo.common.constant;

/**
 * @author mazhenggg
 */
public interface TokenConstants {
    /**
     * token(登录后返回，和用户session匹配)
     */
    String AUTH_TOKEN = "Auth-Token";

    /**
     * token(jwtToken，临时颁发，用于服务间使用)
     */
    String ACCESS_TOKEN= "Access-Token";

    String secretKey = "SecretKey012345678901234567890123456789012345678901234567890123456789";

    /**
     * 默认签发人
     */
    String issuer = "AUTH";

    /**
     * jwt有效时长, 默认5分钟，单位毫秒
     */
    Long expireTime = 60 * 5 * 1000L;

    String AUTHORITIES_KEY = "auth";


}
